{% extends './index.html' %}

{% block title %}选择洗衣机{% endblock %}

{% block subject %}
<form action="/washapp/choose" method="post">
	{% csrf_token %}
	<div style="display:flex;flex-wrap:wrap;justify-content:space-between;">
		{% for i in oldequipments.values %}
		<div style="width:10%;">
			<div style="display:flex;justify-content:center;">
				<div style="background:url(../static/img/washer.png);width:64px;height:64px;">
					<div style="display:flex;justify-content:center;margin-top:33%;color:#8a0000;font-size:20px;">
						{{ forloop.counter }}
					</div>
				</div>
			</div>
			<div style="display:flex;justify-content:center;margin-bottom:5px;">
				<button type="submit" name="choice" value="{{ i }}"
					class="layui-btn layui-btn-normal layui-btn-radius layui-btn-xs">
					选择->{{ i }}
				</button>
			</div>
		</div>
		{% empty %}
		<h1>抱歉！当前暂无可用洗衣机~~~</h1>
		{% endfor %}
	</div>
</form>
{% endblock %}
